package com.ctgu.A1_4.pays;

public class ALiPay extends Payment{//支付宝（AliPay）具有卡号number属性；
    private String number;

    @Override
    public String toString() {
        return "ALiPay{" +
                "具有金额" + super.getAmount() +
                ", number='" + number + '\'' +
                '}';
    }

    public ALiPay() {
    }

    public ALiPay(String number) {
        this.number = number;
    }

    public ALiPay(double amount, String number) {
        super(amount);
        this.number = number;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }
}
